﻿using System.Net.Http;
using KL.UFrame.Data.Entities;
using Microsoft.AspNet.Identity.Owin;

namespace KL.UFrame.Api.Extension
{
    /// <summary>
    /// 对HttpRequest进行扩展
    /// By：杨超
    /// </summary>
    public static class HttpRequestExtension
    {
        public static ApplicationUserManager GetUserManager(this HttpRequestMessage request)
        {
            return request.GetOwinContext().GetUserManager<ApplicationUserManager>();
        }
    }
}